package cn.chinamobile.service.impl;


import cn.chinamobile.dao.UserDao;
import cn.chinamobile.entities.User;
import cn.chinamobile.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class UserServiceImpl implements UserService {
    @Resource
    private UserDao userDao;


    @Override
    public int userRegister(User user) {
        return userDao.userRegister(user);
    }

    @Override
    public User getUserByUsername(String username) {
        return userDao.getUserByUsername(username);
    }
}
